package com.zhouyibike.uu.ui.activity.mywallet;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android.widget.TextView;

import com.zhouyibike.uu.R;
import com.zhouyibike.uu.ui.base.BaseActivity;

public class BuyshangpinSuccessActivity extends BaseActivity implements View.OnClickListener{
    private ImageButton mBtnBack;
    private TextView mBtnTitle;
    private Button btn_succ;
    private TextView chenggongtv,shenqingtv;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_zrsuccess);
        initView();
        setResult(1);
    }
    private void initView(){
        chenggongtv= (TextView) findViewById(R.id.chenggongtv);
        shenqingtv= (TextView) findViewById(R.id.shenqingtv);
        chenggongtv.setText("购买成功");
        shenqingtv.setText("你已支付成功，商家会在"+getIntent().getStringExtra("time"));
        mBtnBack = (ImageButton) findViewById(R.id.bar_btn_back);
        mBtnTitle = (TextView) findViewById(R.id.bar_text_title);
        mBtnTitle.setText("购买成功");
        mBtnBack.setOnClickListener(this);
        btn_succ= (Button) findViewById(R.id.btn_zrsuccess_ljyc);
        btn_succ.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.bar_btn_back:
                finish();
                break;
            case R.id.btn_zrsuccess_ljyc:
                finish();
                break;
        }
    }
}
